import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import * as filters from './utils/filter'
import { VueClipboard } from '@soerenmartius/vue3-clipboard'
import 'normalize.css'
import './assets/iconfont/iconfont.css'
import './styles/global.scss'
import { registerGlobalComponent } from '@/components/registerGlobalComponent'
import { registerGlobalDirective } from '@/directives/registerGlobalDirective'
import './plugins/codemirror'

const app = createApp(App)
app.use(store)
  .use(router)
  .use(VueClipboard)
  .mount('#app')

app.config.globalProperties.$filter = {
  ...filters
}
registerGlobalComponent(app)
registerGlobalDirective(app)
